package InheritanceAndPolymorphism.demo03;

public class Residents {
    /**
     * 建立三个类：居民、成人、官员。居民包含身份证号、姓名、出生日期
     */
        private String idNumber;
        private String name;
        private String birthDate;

        public Residents(String idNumber, String name, String birthDate) {
            this.idNumber = idNumber;
            this.name = name;
            this.birthDate = birthDate;
        }

        public String getIdNumber() {
            return idNumber;
        }

        public void setIdNumber(String idNumber) {
            this.idNumber = idNumber;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getBirthDate() {
            return birthDate;
        }

        public void setBirthDate(String birthDate) {
            this.birthDate = birthDate;
        }
}

